<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: SourceFile.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('src_2blfwk_2_source_file_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">src/blfwk/SourceFile.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013-14, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#if !defined(_SourceFile_h_)</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define _SourceFile_h_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;smart_ptr.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;DataSource.h&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;DataTarget.h&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;StringMatcher.h&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;OptionContext.h&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceblfwk.html">blfwk</a></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html">   56</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_source_file.html">SourceFile</a></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// \brief Factory function that creates the correct subclass of SourceFile.</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">static</span> <a class="code" href="classblfwk_1_1_source_file.html">SourceFile</a> *<a class="code" href="classblfwk_1_1_source_file.html#a32cff59ce3a989ccf10b25be0c4a12ef">openFile</a>(<span class="keyword">const</span> std::string &amp;path);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">   63</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">source_file_t</a></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    {</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a5db2add13330cd84a585fcaed48aa869">   65</a></span>&#160;        <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a5db2add13330cd84a585fcaed48aa869">kBinarySourceFile</a>,   </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a87d9f3d7198bfc4fb3f060e0e5443b72">   66</a></span>&#160;        <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a87d9f3d7198bfc4fb3f060e0e5443b72">kELFSourceFile</a>,      </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a0ddf54173856700b914bf86d73ebc6a1">   67</a></span>&#160;        <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a0ddf54173856700b914bf86d73ebc6a1">kIntelHexSourceFile</a>, </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998aa2bf9a344afe3034a1f6f61eac3d5a05">   68</a></span>&#160;        <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998aa2bf9a344afe3034a1f6f61eac3d5a05">kSBSourceFile</a>,       </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a69c6137855aa55ef0489be8280fb4292">   69</a></span>&#160;        <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a69c6137855aa55ef0489be8280fb4292">kSRecordSourceFile</a>   </div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    };</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <a class="code" href="classblfwk_1_1_source_file.html#aa1725fc0dd2bfb273368aeff942000c8">SourceFile</a>(<span class="keyword">const</span> std::string &amp;path, <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">source_file_t</a> filetype);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_source_file.html#acb46a420d0bd2070581c66d9da5e0bf4">~SourceFile</a>();</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#ae7c3cda0a5cb1eb29c1c12ff380b06c0">   83</a></span>&#160;    <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_source_file.html#ae7c3cda0a5cb1eb29c1c12ff380b06c0">setOptions</a>(<a class="code" href="classblfwk_1_1_option_context.html">OptionContext</a> *context) { <a class="code" href="classblfwk_1_1_source_file.html#aea6f50965d574aa5292423ccc6da9e92">m_options</a> = context; }</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a53f5dab50e8fecb2d4d7ec53b45fabc1">   85</a></span>&#160;    <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classblfwk_1_1_option_context.html">OptionContext</a> *<a class="code" href="classblfwk_1_1_source_file.html#a53f5dab50e8fecb2d4d7ec53b45fabc1">getOptions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_source_file.html#aea6f50965d574aa5292423ccc6da9e92">m_options</a>; }</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a1133162fe35fd5139a8105ef18076c4f">   87</a></span>&#160;    <span class="keyword">inline</span> <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">source_file_t</a> <a class="code" href="classblfwk_1_1_source_file.html#a1133162fe35fd5139a8105ef18076c4f">getFileType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_source_file.html#a83beca715b2d74393e260424308752c9">m_filetype</a>; }</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a9724c2d6fcf119f1617274e39fad3581">   89</a></span>&#160;    <span class="keyword">inline</span> <span class="keyword">const</span> std::string &amp;<a class="code" href="classblfwk_1_1_source_file.html#a9724c2d6fcf119f1617274e39fad3581">getPath</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_source_file.html#a7dfdeceff75c2ddb09de5bfd68730b2e">m_path</a>; }</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a82a95e9ec0b19b5e2851647dad25b911">   91</a></span>&#160;    <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_source_file.html#a82a95e9ec0b19b5e2851647dad25b911">getSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_source_file.html#ad6d6f53487bc9f00f78c1d72134cfcf2">m_size</a>; }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_source_file.html#adca85268a0c1382d42b9380ffe31c39e">open</a>();</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_source_file.html#a0a7c83d27c642615ae2c8bbf46fc025d">close</a>();</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a8919b8da1fbd6fa9ec6bac03e07f4ef7">  101</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_source_file.html#a8919b8da1fbd6fa9ec6bac03e07f4ef7">isOpen</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (<span class="keywordtype">bool</span>)<a class="code" href="classblfwk_1_1_source_file.html#a2de3d6cf300bf5b26d83a7e1347aa98b">m_stream</a> &amp;&amp; <span class="keyword">const_cast&lt;</span>std::ifstream *<span class="keyword">&gt;</span>(<a class="code" href="classblfwk_1_1_source_file.html#a2de3d6cf300bf5b26d83a7e1347aa98b">m_stream</a>.<a class="code" href="group__smart__pointer.html#a5847524c40eea27f1c6c9cd0e0c4485b">get</a>())-&gt;is_open(); }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSections() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSymbols() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_source_file.html#af57254c687966a6fe0ce11b3eee05f46">createDataSource</a>() = 0;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a133cf25e96d7526b2bad4dabf2d3374c">  120</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_source_file.html#a133cf25e96d7526b2bad4dabf2d3374c">createDataSource</a>(<a class="code" href="classblfwk_1_1_string_matcher.html">StringMatcher</a> &amp;matcher) { <span class="keywordflow">return</span> NULL; }</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_source_file.html#af57254c687966a6fe0ce11b3eee05f46">createDataSource</a>(<span class="keyword">const</span> std::string &amp;section);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_source_file.html#a96faa0343f122e994890dd4054f5dbbf">hasEntryPoint</a>() = 0;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#af057132271f46e08c8c9e54ca04a773a">  131</a></span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_source_file.html#af057132271f46e08c8c9e54ca04a773a">getEntryPointAddress</a>() { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *createDataTargetForSection(<span class="keyword">const</span> std::string &amp;section) { <span class="keywordflow">return</span> NULL; }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *createDataTargetForSymbol(<span class="keyword">const</span> std::string &amp;symbol) { <span class="keywordflow">return</span> NULL; }</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *createDataTargetForEntryPoint();</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_source_file.html#a7c4c0f799bc15ac74739197b9a16bf0b">hasSymbol</a>(<span class="keyword">const</span> std::string &amp;name) { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#af45e73f6dc5da4cdfb503c97e5ab8e6a">  146</a></span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_source_file.html#af45e73f6dc5da4cdfb503c97e5ab8e6a">getSymbolValue</a>(<span class="keyword">const</span> std::string &amp;name) { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a895a7375d01aaed725dba7524325a36a">  148</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_source_file.html#a895a7375d01aaed725dba7524325a36a">getSymbolSize</a>(<span class="keyword">const</span> std::string &amp;name) { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a7dfdeceff75c2ddb09de5bfd68730b2e">  152</a></span>&#160;    std::string <a class="code" href="classblfwk_1_1_source_file.html#a7dfdeceff75c2ddb09de5bfd68730b2e">m_path</a>;                 </div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a2de3d6cf300bf5b26d83a7e1347aa98b">  153</a></span>&#160;    <a class="code" href="group__smart__pointer.html">smart_ptr&lt;std::ifstream&gt;</a> <a class="code" href="classblfwk_1_1_source_file.html#a2de3d6cf300bf5b26d83a7e1347aa98b">m_stream</a>;  </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#aea6f50965d574aa5292423ccc6da9e92">  154</a></span>&#160;    <a class="code" href="group__smart__pointer.html#classsmart__ptr">smart_ptr&lt;OptionContext&gt;</a> <a class="code" href="classblfwk_1_1_source_file.html#aea6f50965d574aa5292423ccc6da9e92">m_options</a>; </div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a83beca715b2d74393e260424308752c9">  155</a></span>&#160;    <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">source_file_t</a> <a class="code" href="classblfwk_1_1_source_file.html#a83beca715b2d74393e260424308752c9">m_filetype</a>;           </div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#ad6d6f53487bc9f00f78c1d72134cfcf2">  156</a></span>&#160;    <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_source_file.html#ad6d6f53487bc9f00f78c1d72134cfcf2">m_size</a>;                    </div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classblfwk_1_1_source_file.html#a6d5c6fc36abf7fe67de1b18b25a78265">  159</a></span>&#160;    <span class="keyword">inline</span> std::ifstream *<a class="code" href="classblfwk_1_1_source_file.html#a6d5c6fc36abf7fe67de1b18b25a78265">getStream</a>() { <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_source_file.html#a2de3d6cf300bf5b26d83a7e1347aa98b">m_stream</a>; }</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;};</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classblfwk_1_1_binary_source_file.html">  165</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_binary_source_file.html">BinarySourceFile</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_source_file.html">SourceFile</a></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;{</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="classblfwk_1_1_binary_source_file.html">BinarySourceFile</a>(<span class="keyword">const</span> std::string &amp;path, <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">source_file_t</a> sourceFileType = <a class="code" href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a5db2add13330cd84a585fcaed48aa869">kBinarySourceFile</a>);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSections()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSymbols()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_source_file.html#af57254c687966a6fe0ce11b3eee05f46">createDataSource</a>();</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordtype">void</span> guessEntryPointAndStackPointer();</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classblfwk_1_1_binary_source_file.html#ad1606d1de51962f5e7ff5b1d74d01e51">  190</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_binary_source_file.html#ad1606d1de51962f5e7ff5b1d74d01e51">hasEntryPoint</a>() { <span class="keywordflow">return</span> m_entry_point != 0xffffffff; }</div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classblfwk_1_1_binary_source_file.html#aa50124140e62d9a6574ae15c57811378">  192</a></span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_binary_source_file.html#aa50124140e62d9a6574ae15c57811378">getEntryPointAddress</a>() { <span class="keywordflow">return</span> m_entry_point; }</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classblfwk_1_1_binary_source_file.html#ab2693df1c4e39833729cd47ffc99885f">  194</a></span>&#160;    uint32_t <a class="code" href="classblfwk_1_1_binary_source_file.html#ab2693df1c4e39833729cd47ffc99885f">getStackPointer</a>() { <span class="keywordflow">return</span> m_stack_pointer; }</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    uint32_t m_entry_point;</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    uint32_t m_stack_pointer;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;};</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}; <span class="comment">// namespace blfwk</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">#endif // _SourceFile_h_</span></div><div class="ttc" id="classblfwk_1_1_source_file_html_aea6f50965d574aa5292423ccc6da9e92"><div class="ttname"><a href="classblfwk_1_1_source_file.html#aea6f50965d574aa5292423ccc6da9e92">blfwk::SourceFile::m_options</a></div><div class="ttdeci">smart_ptr&lt; OptionContext &gt; m_options</div><div class="ttdoc">Table of option values. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:154</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adae94562410f32ab49ebd3275b733998aa2bf9a344afe3034a1f6f61eac3d5a05"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998aa2bf9a344afe3034a1f6f61eac3d5a05">blfwk::SourceFile::kSBSourceFile</a></div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:68</div></div>
<div class="ttc" id="group__smart__pointer_html_a5847524c40eea27f1c6c9cd0e0c4485b"><div class="ttname"><a href="group__smart__pointer.html#a5847524c40eea27f1c6c9cd0e0c4485b">smart_ptr::get</a></div><div class="ttdeci">ptr_type get()</div><div class="ttdoc">Return the current pointer value. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/smart_ptr.h:43</div></div>
<div class="ttc" id="namespaceblfwk_html"><div class="ttname"><a href="namespaceblfwk.html">blfwk</a></div><div class="ttdef"><b>Definition:</b> BlfwkErrors.h:16</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adae94562410f32ab49ebd3275b733998a0ddf54173856700b914bf86d73ebc6a1"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a0ddf54173856700b914bf86d73ebc6a1">blfwk::SourceFile::kIntelHexSourceFile</a></div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:67</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adae94562410f32ab49ebd3275b733998"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998">blfwk::SourceFile::source_file_t</a></div><div class="ttdeci">source_file_t</div><div class="ttdoc">Set of supported executable image file formats. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:63</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_af45e73f6dc5da4cdfb503c97e5ab8e6a"><div class="ttname"><a href="classblfwk_1_1_source_file.html#af45e73f6dc5da4cdfb503c97e5ab8e6a">blfwk::SourceFile::getSymbolValue</a></div><div class="ttdeci">virtual uint32_t getSymbolValue(const std::string &amp;name)</div><div class="ttdoc">Returns the value of a symbol. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:146</div></div>
<div class="ttc" id="classblfwk_1_1_binary_source_file_html_ad1606d1de51962f5e7ff5b1d74d01e51"><div class="ttname"><a href="classblfwk_1_1_binary_source_file.html#ad1606d1de51962f5e7ff5b1d74d01e51">blfwk::BinarySourceFile::hasEntryPoint</a></div><div class="ttdeci">virtual bool hasEntryPoint()</div><div class="ttdoc">Returns true if an entry point was set in the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:190</div></div>
<div class="ttc" id="classblfwk_1_1_binary_source_file_html_aa50124140e62d9a6574ae15c57811378"><div class="ttname"><a href="classblfwk_1_1_binary_source_file.html#aa50124140e62d9a6574ae15c57811378">blfwk::BinarySourceFile::getEntryPointAddress</a></div><div class="ttdeci">virtual uint32_t getEntryPointAddress()</div><div class="ttdoc">Returns the entry point address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:192</div></div>
<div class="ttc" id="group__smart__pointer_html"><div class="ttname"><a href="group__smart__pointer.html">smart_ptr&lt; std::ifstream &gt;</a></div></div>
<div class="ttc" id="classblfwk_1_1_binary_source_file_html"><div class="ttname"><a href="classblfwk_1_1_binary_source_file.html">blfwk::BinarySourceFile</a></div><div class="ttdoc">Binary data file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:165</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a0a7c83d27c642615ae2c8bbf46fc025d"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a0a7c83d27c642615ae2c8bbf46fc025d">blfwk::SourceFile::close</a></div><div class="ttdeci">virtual void close()</div><div class="ttdoc">Closes the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/SourceFile.cpp:147</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a2de3d6cf300bf5b26d83a7e1347aa98b"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a2de3d6cf300bf5b26d83a7e1347aa98b">blfwk::SourceFile::m_stream</a></div><div class="ttdeci">smart_ptr&lt; std::ifstream &gt; m_stream</div><div class="ttdoc">File stream, or NULL if file is closed. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:153</div></div>
<div class="ttc" id="classblfwk_1_1_data_target_html"><div class="ttname"><a href="classblfwk_1_1_data_target.html">blfwk::DataTarget</a></div><div class="ttdoc">Abstract base class for the target address or range of data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataTarget.h:57</div></div>
<div class="ttc" id="classblfwk_1_1_option_context_html"><div class="ttname"><a href="classblfwk_1_1_option_context.html">blfwk::OptionContext</a></div><div class="ttdoc">Pure abstract interface class to a table of options. </div><div class="ttdef"><b>Definition:</b> src/blfwk/OptionContext.h:41</div></div>
<div class="ttc" id="group__smart__pointer_html_classsmart__ptr"><div class="ttname"><a href="group__smart__pointer.html#classsmart__ptr">smart_ptr</a></div><div class="ttdoc">Simple, standard smart pointer class. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/smart_ptr.h:18</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a7dfdeceff75c2ddb09de5bfd68730b2e"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a7dfdeceff75c2ddb09de5bfd68730b2e">blfwk::SourceFile::m_path</a></div><div class="ttdeci">std::string m_path</div><div class="ttdoc">Path to the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:152</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a32cff59ce3a989ccf10b25be0c4a12ef"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a32cff59ce3a989ccf10b25be0c4a12ef">blfwk::SourceFile::openFile</a></div><div class="ttdeci">static SourceFile * openFile(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> src/blfwk/src/SourceFile.cpp:62</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_ad6d6f53487bc9f00f78c1d72134cfcf2"><div class="ttname"><a href="classblfwk_1_1_source_file.html#ad6d6f53487bc9f00f78c1d72134cfcf2">blfwk::SourceFile::m_size</a></div><div class="ttdeci">unsigned m_size</div><div class="ttdoc">The size in bytes of the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:156</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a82a95e9ec0b19b5e2851647dad25b911"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a82a95e9ec0b19b5e2851647dad25b911">blfwk::SourceFile::getSize</a></div><div class="ttdeci">unsigned getSize() const </div><div class="ttdoc">Get the size in bytes of the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:91</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_af57254c687966a6fe0ce11b3eee05f46"><div class="ttname"><a href="classblfwk_1_1_source_file.html#af57254c687966a6fe0ce11b3eee05f46">blfwk::SourceFile::createDataSource</a></div><div class="ttdeci">virtual DataSource * createDataSource()=0</div><div class="ttdoc">Creates a data source from the entire file. </div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html"><div class="ttname"><a href="classblfwk_1_1_source_file.html">blfwk::SourceFile</a></div><div class="ttdoc">Abstract base class for a source file containing executable code. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_aa1725fc0dd2bfb273368aeff942000c8"><div class="ttname"><a href="classblfwk_1_1_source_file.html#aa1725fc0dd2bfb273368aeff942000c8">blfwk::SourceFile::SourceFile</a></div><div class="ttdeci">SourceFile(const std::string &amp;path, source_file_t filetype)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/SourceFile.cpp:113</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a96faa0343f122e994890dd4054f5dbbf"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a96faa0343f122e994890dd4054f5dbbf">blfwk::SourceFile::hasEntryPoint</a></div><div class="ttdeci">virtual bool hasEntryPoint()=0</div><div class="ttdoc">Returns true if an entry point was set in the file. </div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_af057132271f46e08c8c9e54ca04a773a"><div class="ttname"><a href="classblfwk_1_1_source_file.html#af057132271f46e08c8c9e54ca04a773a">blfwk::SourceFile::getEntryPointAddress</a></div><div class="ttdeci">virtual uint32_t getEntryPointAddress()</div><div class="ttdoc">Returns the entry point address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:131</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a9724c2d6fcf119f1617274e39fad3581"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a9724c2d6fcf119f1617274e39fad3581">blfwk::SourceFile::getPath</a></div><div class="ttdeci">const std::string &amp; getPath() const </div><div class="ttdoc">Returns the path to the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:89</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a7c4c0f799bc15ac74739197b9a16bf0b"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a7c4c0f799bc15ac74739197b9a16bf0b">blfwk::SourceFile::hasSymbol</a></div><div class="ttdeci">virtual bool hasSymbol(const std::string &amp;name)</div><div class="ttdoc">Returns whether a symbol exists in the source file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:144</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a83beca715b2d74393e260424308752c9"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a83beca715b2d74393e260424308752c9">blfwk::SourceFile::m_filetype</a></div><div class="ttdeci">source_file_t m_filetype</div><div class="ttdoc">Image file type. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:155</div></div>
<div class="ttc" id="classblfwk_1_1_string_matcher_html"><div class="ttname"><a href="classblfwk_1_1_string_matcher.html">blfwk::StringMatcher</a></div><div class="ttdoc">Abstract interface class used to select strings by name. </div><div class="ttdef"><b>Definition:</b> src/blfwk/StringMatcher.h:40</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adca85268a0c1382d42b9380ffe31c39e"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adca85268a0c1382d42b9380ffe31c39e">blfwk::SourceFile::open</a></div><div class="ttdeci">virtual void open()</div><div class="ttdoc">Opens the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/SourceFile.cpp:137</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_acb46a420d0bd2070581c66d9da5e0bf4"><div class="ttname"><a href="classblfwk_1_1_source_file.html#acb46a420d0bd2070581c66d9da5e0bf4">blfwk::SourceFile::~SourceFile</a></div><div class="ttdeci">virtual ~SourceFile()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/SourceFile.cpp:128</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a133cf25e96d7526b2bad4dabf2d3374c"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a133cf25e96d7526b2bad4dabf2d3374c">blfwk::SourceFile::createDataSource</a></div><div class="ttdeci">virtual DataSource * createDataSource(StringMatcher &amp;matcher)</div><div class="ttdoc">Creates a data source out of one or more sections of the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:120</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a1133162fe35fd5139a8105ef18076c4f"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a1133162fe35fd5139a8105ef18076c4f">blfwk::SourceFile::getFileType</a></div><div class="ttdeci">source_file_t getFileType() const </div><div class="ttdoc">Return the file type. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:87</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html"><div class="ttname"><a href="classblfwk_1_1_data_source.html">blfwk::DataSource</a></div><div class="ttdoc">Abstract base class for data sources. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a53f5dab50e8fecb2d4d7ec53b45fabc1"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a53f5dab50e8fecb2d4d7ec53b45fabc1">blfwk::SourceFile::getOptions</a></div><div class="ttdeci">const OptionContext * getOptions() const </div><div class="ttdoc">Return the option context. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:85</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a6d5c6fc36abf7fe67de1b18b25a78265"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a6d5c6fc36abf7fe67de1b18b25a78265">blfwk::SourceFile::getStream</a></div><div class="ttdeci">std::ifstream * getStream()</div><div class="ttdoc">Internal access to the input stream object. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:159</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adae94562410f32ab49ebd3275b733998a87d9f3d7198bfc4fb3f060e0e5443b72"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a87d9f3d7198bfc4fb3f060e0e5443b72">blfwk::SourceFile::kELFSourceFile</a></div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:66</div></div>
<div class="ttc" id="classblfwk_1_1_binary_source_file_html_ab2693df1c4e39833729cd47ffc99885f"><div class="ttname"><a href="classblfwk_1_1_binary_source_file.html#ab2693df1c4e39833729cd47ffc99885f">blfwk::BinarySourceFile::getStackPointer</a></div><div class="ttdeci">uint32_t getStackPointer()</div><div class="ttdoc">Returns the stack pointer. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:194</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a8919b8da1fbd6fa9ec6bac03e07f4ef7"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a8919b8da1fbd6fa9ec6bac03e07f4ef7">blfwk::SourceFile::isOpen</a></div><div class="ttdeci">virtual bool isOpen() const </div><div class="ttdoc">Returns whether the file is already open. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:101</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adae94562410f32ab49ebd3275b733998a69c6137855aa55ef0489be8280fb4292"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a69c6137855aa55ef0489be8280fb4292">blfwk::SourceFile::kSRecordSourceFile</a></div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:69</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_a895a7375d01aaed725dba7524325a36a"><div class="ttname"><a href="classblfwk_1_1_source_file.html#a895a7375d01aaed725dba7524325a36a">blfwk::SourceFile::getSymbolSize</a></div><div class="ttdeci">virtual unsigned getSymbolSize(const std::string &amp;name)</div><div class="ttdoc">Returns the size of a symbol. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:148</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_adae94562410f32ab49ebd3275b733998a5db2add13330cd84a585fcaed48aa869"><div class="ttname"><a href="classblfwk_1_1_source_file.html#adae94562410f32ab49ebd3275b733998a5db2add13330cd84a585fcaed48aa869">blfwk::SourceFile::kBinarySourceFile</a></div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:65</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html_ae7c3cda0a5cb1eb29c1c12ff380b06c0"><div class="ttname"><a href="classblfwk_1_1_source_file.html#ae7c3cda0a5cb1eb29c1c12ff380b06c0">blfwk::SourceFile::setOptions</a></div><div class="ttdeci">void setOptions(OptionContext *context)</div><div class="ttdoc">Set the option context. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:83</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80fb9e53c172a775cab667063273d0e3.html">blfwk</a></li><li class="navelem"><b>SourceFile.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:50 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
